/*
 * @Description: 
 * @Author: 邢
 * @Date: 2021-04-21 15:11:25
 * @LastEditTime: 2021-04-21 18:28:18
 * @LastEditors: 邢
 */
import React from 'react'
import { IRouteComponentProps,NavLink } from "umi"
//less
import styles from "./index.less"


function works(props:IRouteComponentProps) {
    return (
        <div className={styles.works}>
            <div className={styles.left}>
                <ul>
                    <li>
                        <NavLink to="/works/comment">评论管理</NavLink>
                    </li>
                    <li>
                        <NavLink to="/works/mail">邮件管理</NavLink>
                    </li>
                    <li>
                        <NavLink to="/works/file">文件管理</NavLink>
                    </li>
                    <li>
                        <NavLink to="/works/search">搜索记录</NavLink>
                    </li>
                    <li>
                        <NavLink to="/works/view">访问统计</NavLink>
                    </li>
                    <li>
                        <NavLink to="/works/user">用户管理</NavLink>
                    </li>
                    <li>
                        <NavLink to="/works/setting">系统设置</NavLink>
                    </li>
                </ul>
            </div>
            <div className={styles.right}>
                {props.children}
            </div>
        </div>
    )
}
export default works
